<html>
    <head>
        <style type="text/css">
            html,body,img
            {
                height:<?php echo $ad['intHeight'].'px'; ?>;
                width:<?php echo $ad['intWidth'].'px'; ?>;
                margin:0;
                padding:0;
                
            }
        </style>
    </head>
    <body style="overflow:hidden">
        <?php if($this->data['ad']['strLink']!=""): ?>
            <a target="_blank" href="<?php echo $ad['strLink']; ?>">
        <?php else: ?>
        <a href="#">
        <?php endif; ?>
            <img src="<?php echo base_url().IMAGE_UPLOAD_DIR.$ad['strFilename']; ?>"/>
        </a>
    </body>
</html>
